<html>
  <head>
    <link type="text/css" rel="stylesheet" href="../../css/style.css"/>
    <title>Iterator Pattern</title>
	<script type="text/javascript" src="MenuItem.js"></script>
	<script type="text/javascript" src="DinnerMenu.js"></script>
	<script type="text/javascript" src="PancakeHouseMenu.js"></script>
	<script type="text/javascript" src="Mattress.js"></script>
  </head>
  <body>
    <div id="source">
      <h2>Source</h2>
      <pre>
var oMattress = new Mattress();
oMattress.printMenu();
oMattress.printBreakfastMenu();
oMattress.printLunchMenu();
      </pre>
    </div>
    <div id="console">
    	<h2>Console</h2>
	    <ul></ul>
	    <h1>ITERATOR</h1>
    </div>
    <script type="text/javascript" src="../../js/utils.js"></script>
    <script type="text/javascript">
		var oMattress = new Mattress();
		console.log("---------------------------------------------");
		oMattress.printMenu();
		console.log("---------------------------------------------");
		oMattress.printBreakfastMenu();
		console.log("---------------------------------------------");
		oMattress.printLunchMenu();
    </script>
  </body>
</html>
